package cvut.swe.semestralka.sesame;

import java.util.Comparator;

public class Depart implements Comparable<Depart> {
	private Integer hour;
	private Integer minute;
	private String departUri;
	
	public String getDepartUri() {
		return departUri;
	}
	public void setDepartUri(String departUri) {
		this.departUri = departUri;
	}
	public Integer getHour() {
		return hour;
	}
	public void setHour(Integer hour) {
		this.hour = hour;
	}
	public Integer getMinute() {
		return minute;
	}
	public void setMinute(Integer minute) {
		this.minute = minute;
	}
	public int compareTo(Depart o2) {
		if(this.minute == null || o2 == null){
			return 1;
		}
		if(o2.getMinute() == null){
			return 1;
		}
		return this.minute.compareTo(o2.getMinute());
	}
	
	
}
